package online.yangcloud.core.model.request.file;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author zhuboyang
 * @since 2023年03月25 21:17:26
 */
public class FileMerger {

    /**
     * 文件唯一标识
     */
    @NotBlank
    private String identifier;

    /**
     * 上级目录 id
     */
    @NotBlank
    private String pid;

    /**
     * 文件名
     */
    @NotBlank
    private String fileName;

    /**
     * 文件类型
     */
    @NotNull
    private Integer type;

    /**
     * 文件后缀
     */
    @NotBlank
    private String ext;

    /**
     * 分片大小
     */
    @NotNull
    private Long shardingSize;

    /**
     * 文件大小
     */
    @NotNull
    private Long fileSize;

    public String getIdentifier() {
        return identifier;
    }

    public void setIdentifier(String identifier) {
        this.identifier = identifier;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public Long getShardingSize() {
        return shardingSize;
    }

    public void setShardingSize(Long shardingSize) {
        this.shardingSize = shardingSize;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    @Override
    public String toString() {
        return "FileMerger["
                + " identifier=" + identifier + ","
                + " pid=" + pid + ","
                + " fileName=" + fileName + ","
                + " type=" + type + ","
                + " ext=" + ext + ","
                + " shardingSize=" + shardingSize + ","
                + " fileSize=" + fileSize
                + " ]";
    }
}
